/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSky.support.recoder;

import java.io.UnsupportedEncodingException;
import java.util.Map;
import ru.jSky.interfaces.support.Unmodifiable;

/**
 *
 * @author Rakev
 */
public class RecoderFacade implements Unmodifiable {
    private final StringRecoder recoder;
    private final MapRecoder mapRecoder;

    public RecoderFacade(StringRecoder recoder) {
        this.recoder = recoder;
        this.mapRecoder = new MapRecoder(recoder);
    }
    
    public String recode(String input) throws UnsupportedEncodingException{
        return recoder.recode(input);
    }
    
    public <K> Map<K,String> recode(Map<K,String> input) throws UnsupportedEncodingException{
        return mapRecoder.recode(input);
    }
    
}
